package com.xingkeduo.business.user.service;

import com.xingkeduo.dao.database.DatabaseAccessObject;
import com.xingkeduo.pojo.query.JobseekerJobHistoryQO;
import com.xingkeduo.pojo.table.JobseekerJobHistoryTO;
import com.xingkeduo.util.tool.CommonUtil;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description:
 * @Author:gaozifeng
 * @Date 2019/5/25 14:22
 **/
@Component
public class JobseekerJobHistoryService {
    private static final String NAMESPACE = CommonUtil.formatNamespace(JobseekerJobHistoryTO.class);
    @Resource(name = "mysqlUserMasterDao")
    private DatabaseAccessObject<JobseekerJobHistoryTO, JobseekerJobHistoryQO> dao;

    /**
     * 查询
     *
     * @param query
     * @return
     * @throws Throwable
     * @author 高杰
     * @time 2019年1月8日 下午2:22:21
     */
    public List<JobseekerJobHistoryTO> selectByQuery(JobseekerJobHistoryQO query) throws Throwable {
        return dao.select(NAMESPACE, query);
    }

}
